import ajax from './ajax'

export default{
    setCode(data) {
        return ajax({
            url: '',
            method: 'post',
            data,
            type: 'json'
        })
    },
    uploadFile(data) {s
        return ajax({
            url: '',
            method: 'post',
            data,
            type: 'form'
        })
    },
    download(data) {
        return ajax({
            url: '',
            method: 'get',
            data,
            responseType: 'blob'
        })
    },
    login(data) {
        return ajax({
            url: '/sys/user/login',
            method: 'get',
            data,
            type: 'json'
        })
    }
}